package chat;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

/**
 * Serviço de Login
 * 
 * @author Lucas, Nara e Nelson
 *
 */
public interface LoginService extends Remote{
	
	public final int offline = 0; 
	public final int online = 1;
	public final int busy = 2;
	public final int away = 3;
	
	public int verificaStatus(String login) throws RemoteException;
	
	public Usuario logar(String login, String senha) throws RemoteException;
	
	public boolean alterarStatus(String login, int status) throws RemoteException;
	
	public void deslogar(String login) throws RemoteException;
	
	public ArrayList<Usuario> listarUsuarios () throws RemoteException;
	
}
